package cn.xiaoxiang.feign;

import cn.xiaoxiang.batis.AjaxResult;
import cn.xiaoxiang.domain.Store;
import cn.xiaoxiang.fallback.StoreServicefallbackFactory;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "store-server",path = "store",contextId = "StoreService",fallbackFactory = StoreServicefallbackFactory.class )
public interface StoreService {

    @PostMapping
     AjaxResult add(@RequestBody Store store);
}
